home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mintmant
/
prenice.txt
< prev
next >
Wrap
Text File
|
1992-03-24
|
1KB
|
64 lines
Prenice(2) Oct. 1, 1991 Prenice(2)
NAME
Prenice - change process priority
SYNOPSIS
LONG Prenice( WORD pid, WORD delta );
DESCRIPTION
Prenice changes the base process niceness for process pid by
the amount delta. Higher levels of niceness correspond to
decreased priority in scheduling, so positive values for
delta cause the corresponding process to be scheduled less
often. Conversely, negative values for delta cause the pro-
cess priority to be increased.
RETURNS
The current priority for the process, if successful. This is
a 16 bit signed quantity. The default priority is 0; higher
priority processes have larger priority values, lower prior-
ity ones have smaller values.
EFILNF if the indicated process does not exist (note that
since this is a 32 bit negative number it can be dis-
tinguished from the WORD negative numbers returned for low
priority processes)
EACCDN if the process has a different user id
SEE ALSO
Pnice(2)
BUGS
The scheduling algorithm is pretty weird, so it's hard to
predict exactly what effect process priorities have.
Version 0.9 Last change: MiNT Programmer's Manual 1